﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using iShoppingDAO;
using iShoppingDTO;

namespace iShoppingBUS
{
    public class CommentBUS
    {
        public static bool InsertComment(CommentDTO commentDto)
        {
            return CommentDAO.InsertComment(commentDto);
        }
        public static List<CommentDTO> GetCommentOfSP(string maSP)
        {
            return CommentDAO.GetCommentOfSP(maSP);
        }

        public static DataTable GetComment(string maSP)
        {
            return CommentDAO.GetComment(maSP);
        }

        public static bool UpdateComment(string noidung)
        {
            return CommentDAO.UpdateComment(noidung);
        }

        public static bool DeleteComment(string macomment)
        {
            return CommentDAO.DeleteComment(macomment);
        }
    }
}
